import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import Table from './views/nav1/Table.vue'
import Form from './views/nav1/Form.vue'
import user from './views/nav1/user.vue'
import Page4 from './views/nav2/Page4.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/org/Department.vue'
import Employee from './views/org/Employee.vue'
import Shop from './views/org/Shop.vue'
import TemdictionaryType from './views/sys/TemdictionaryType.vue'
import ShopRegister from './views/ShopRegister.vue'
import ShopRegisterRevise from './views/org/ShopRegisterRevise.vue'
import Menu from './views/sys/Menu.vue'
import Permission from './views/sys/Permission.vue'
import Role from './views/sys/Role.vue'
import NoPermission from './views/NoPermission.vue'

let routes = [
    {
        path: "/",
        redirect:'/echarts'
    },
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegisterRevise',
        component: ShopRegisterRevise,
        name: '',
        hidden: true
    },

    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        leaf: true,

        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/noPermission' }
    }
];

export default routes;